package com.itheima.stock.common.domain;

import com.alibaba.excel.annotation.ExcelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class StockIncrease {
    /**
     *             "tradeAmt": 4594802,
     *             "preClosePrice": 18.78,
     *             "amplitude": 0.059638,
     *             "code": "000004",
     *             "name": "国华网安",
     *             "curDate": "20211230",
     *             "tradeVol": 4594802,
     *             "increase": 0.039936,
     *             "upDown": 0.75,
     *             "tradePrice": 19.53
     */

    @ExcelProperty(value = {"股票涨幅信息统计表","交易总量"},index = 7)
    private Long tradeAmt;
    @ExcelProperty(value = {"股票涨幅信息统计表","前收盘价格"},index = 2)
    private BigDecimal preClosePrice;
    @ExcelProperty(value = {"股票涨幅信息统计表","振幅"},index= 6)
    private BigDecimal amplitude;
    @ExcelProperty(value = {"股票涨幅信息统计表","股票编码"},index = 0)
    private String code;
    @ExcelProperty(value = {"股票涨幅信息统计表","股票名称"},index = 1)
    private String name;
    @ExcelProperty(value = {"股票涨幅信息统计表","日期"},index = 9)
    private String curDate;
    @ExcelProperty(value = {"股票涨幅信息统计表","交易总金额"},index = 8)
    private Long tradeVol;
    @ExcelProperty(value = {"股票涨幅信息统计表","涨跌"},index= 4)
    private BigDecimal increase;
    @ExcelProperty(value = {"股票涨幅信息统计表","涨幅"},index= 5)
    private BigDecimal upDown;
    @ExcelProperty(value = {"股票涨幅信息统计表","当前价格"},index= 3)
    private BigDecimal tradePrice;
}
